import request from '../utils/axios';

// 获取学生列表
export function getStudentList() {
  return request({
    url: '/students/information',
    method: 'get'
  });
}


// 新增学生
export function addStudent(data) {
  return request({
    url: '/students/information',
    method: 'post',
    data
  });
}

// 编辑学生
export function updateStudent(data) {
  return request({
    url: `/students/information`,
    method: 'put',
    data
  });
}

// 删除学生
export function deleteStudent(id) {
  return request({
    url: `/students/information/${id}`,
    method: 'delete'
  });
}
